//
//  BaseImageView.h
//  GK
//
//  Created by Seven on 2018/12/19.
//  Copyright © 2018 Seven. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface BaseImageView : YYAnimatedImageView

- (void)setImageWithUrl:(NSString *)url;

- (void)setImageWithUrl:(NSString *)url placeholderName:(NSString *)name;

- (void)setImageWithName:(NSString *)name;


- (void)setUserIconWithUrl:(NSString *)url;
- (void)setUserIconWithUrl2:(NSString *)url;

@property(nonatomic, copy)CustomAction customAction;//自定义block

+ (void)saveUserImage:(UIImage *)image withKey:(NSString *)key;
+ (void)saveImage:(UIImage *)image withKey:(NSString *)key;

+ (void)imageWithUrl:(NSString *)url callback:(void (^)(UIImage *image))callback;


+ (void)cacheUrl:(NSString *)url;
@end

NS_ASSUME_NONNULL_END
